from django.shortcuts import render
from lesson.models import Subject, Lesson, Lesson_class
from django.contrib import admin
from django.template import Context, Template

# Create your views here.
def first(request):
    context = {}
    subject_list = Subject.objects.all()
    context['subject_list'] = subject_list
    return render(request, 'first_web.html', context)

# def user(request):
#     if user is admin:
#         return Subject, Lesson_class, Lesson
#     else:
#         return Lesson_class

